package MVCEX1BT4;

public class Models {
	public void CheckDayOfMonth(Object obj){
		float k=obj.getNam()%4;
		switch (obj.getThang()){
		case 2: if(k==0){obj.setNgay(29);}else{obj.setNgay(28);};break;
		case 4: obj.setNgay(30);break;
		case 6:	obj.setNgay(30);break;
		case 9: obj.setNgay(30);break;
		case 11:obj.setNgay(30);break;
		default: obj.setNgay(31);break;
		}
	}
}
